var e = require("../../@babel/runtime/helpers/interopRequireDefault")(require("../../@babel/runtime/regenerator")), t = require("../../@babel/runtime/helpers/asyncToGenerator"), a = getApp(), r = (require("../../utils/api.js"), 
require("../../http/indexApi.js"));

Page({
    data: {
        systemInfo: a.data.systemInfo
    },
    onLoad: function(e) {
        this.loadData();
    },
    onShow: function() {
        a.updateMyRedDot();
    },
    activityOnTap: function(e) {
        var t = e.currentTarget.dataset.data;
        a.bannerOnTap(t);
    },
    loadData: function() {
        var a = this;
        return t(e.default.mark(function t() {
            var n;
            return e.default.wrap(function(e) {
                for (;;) switch (e.prev = e.next) {
                  case 0:
                    return wx.showLoading({
                        title: "加载中…"
                    }), e.prev = 1, e.next = 4, r.activityList();

                  case 4:
                    n = e.sent, a.setData({
                        dataList: n.data
                    }), e.next = 11;
                    break;

                  case 8:
                    e.prev = 8, e.t0 = e.catch(1), console.log(e.t0);

                  case 11:
                    return e.prev = 11, wx.hideLoading(), e.finish(11);

                  case 14:
                  case "end":
                    return e.stop();
                }
            }, t, null, [ [ 1, 8, 11, 14 ] ]);
        }))();
    }
});